<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 400px;
            height: 400px;
            background-color: pink;
            background-image: url(./images/1.png);
/* 1.不平铺 no-repeat
2.横向 repeat-x
3.纵向 repeat-y*/
background-repeat: no-repeat;
/* 背景图片大小 */
background-size: 200px;
/* background-size: contain;
 */
 /* background-size: contain; */
 background-position:right top;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>